#ifndef ADDFIELDDIALOG_H
#define ADDFIELDDIALOG_H

#include <QDialog>
#include <QPushButton>
#include <QComboBox>
#include <QLineEdit>
#include <QFormLayout>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include "util/appevent.h"
#include "Geo/map/geofielddefn.h"
namespace Ui {
class AddFieldDialog;
}

class AddFieldDialog : public QDialog
{
    Q_OBJECT

public:
    explicit AddFieldDialog(QWidget *parent = nullptr);
    ~AddFieldDialog();
    void iniMainDialog();
signals:
    void sigAddField(QString fieldName,GeoFieldType fieldType);
private slots:
    void on_btnOK_clicked();
    void on_btnCancel_clicked();
private:
    QLineEdit *editFieldName;
    QComboBox *comboxFieldType;

    QPushButton *btnOK;
    QPushButton *btnCancel;
private:
    Ui::AddFieldDialog *ui;
};

#endif // ADDFIELDDIALOG_H
